package com.genesis.yunnanji.utils;

import android.widget.ImageView;

import org.xutils.image.ImageOptions;
import org.xutils.x;

/**
 * Created by Administrator on 2017/10/30.
 */

public class ImageUtils {
    public static void DisplayImage(ImageView imageView, String url) {
        ImageOptions.Builder builder = new ImageOptions.Builder();
        builder.setFadeIn(true);
        builder.setImageScaleType(ImageView.ScaleType.FIT_XY);
        builder.setUseMemCache(false);
        ImageOptions options = builder.build();
        x.image().bind(imageView, url, options);
    }
}
